Resolve errors when writing to LUKS partitions by opening the decrypted mapper device instead of the raw encrypted partition.